{% extends "base.html" %}
{% block title %}User Login{% endblock %}
{% block head %}User Login{% endblock %}
{% block content %}
	{% if form.errors %}
		<p>Your username and password didn't match. Please try again.</p>
	{% endif %}

	<form action="" method="post">
		{% csrf_token %}
		<p><label for="id_username">Username:</label>{{ form.username }}</p>
		<p><label for="id_password">Password:</label>{{ form.password }}</p>
		<input type="hidden" name="next" value="{{ next }}" />
		<input type="submit" value="login" />
	</form>
{% endblock %}